package com.eairlv.route.server.config;

import com.eairlv.route.server.service.AuthenticationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class RouteServerRunner implements ApplicationRunner {

    @Autowired
    AuthenticationService authenticationService;

    @Override
    public void run(ApplicationArguments args) {
        authenticationService.loadAuthentication();
    }
}
